Pedantic leak fixes that aren't actually leak fixes at all... From Rick.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 6 Apr 2004 15:45:07 +0000 (15:45 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 6 Apr 2004 15:45:07 +0000 (15:45 +0000)
gpsbabel/geoniche.c

index 36f3901d2bd858fc171be4c157ca4728abb4386c..12aac56bb51df43709affc64b497096919384ea8 100644 (file)
@@ -335,16 +335,17 @@ data_read(void)
        wpt->longitude = lon;
        wpt->altitude = alt;
        wpt->icon_descr = category;
+       wpt->icon_descr_is_dynamic = 1;
 
        if (gid[0])
        {
-           wpt->shortname = strdup(gid);
+           wpt->shortname = xstrdup(gid);
            wpt->description = title;
            wpt->notes = notes;
        }
        else
        {
-           wpt->shortname = strdup(title);
+           wpt->shortname = xstrdup(title);
            wpt->description = title;
            wpt->notes = notes;
        }
@@ -439,7 +440,7 @@ copilot_writewpt(const waypoint *wpt)
 
     /* Notes field MUST have soemthing in it */
     if (!wpt->notes || wpt->notes[0] == 0)
-       notes = strdup(title);
+       notes = xstrdup(title);
     else
        notes = enscape(wpt->notes);